﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// ACS (American Community Survey) District Summary Report Definition STO
	/// </summary>
    [DataContract]
    public class ACSDistrictSummaryReportDefinitionSTO
    {
		//Todo: local variables are declared public??
		/// <summary>
		/// List of ACSDistrictSummaryReportDefinitionDTO objects declared.
		/// </summary>
        public List<ACSDistrictSummaryReportDefinitionDTO> _definitionList;
		/// <summary>
		/// Backing field for error message.
		/// </summary>
        public string _errorMessage;

		/// <summary>
		/// Initializes a new instance of the <see cref="ACSDistrictSummaryReportDefinitionSTO"/> class.
		/// </summary>
        public ACSDistrictSummaryReportDefinitionSTO()
        {
            _definitionList = new List<ACSDistrictSummaryReportDefinitionDTO>();
            _errorMessage = "";
        }

		/// <summary>
		/// Gets or sets the definition list.
		/// </summary>
		/// <value>The definition list.</value>
        [DataMember]
        public List<ACSDistrictSummaryReportDefinitionDTO> definitionList
        {
            get { return _definitionList; }
            set { _definitionList = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }

    }
}
